﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicWarfare
		Group                          = InterferenceModules
		Module                         = niani interference module
		CpuUsage                       = 99.00 TF
		ReactorUsage                   = 183.00 RP
		Type                           = Active
		Slot                           = Head
		TechnologicalLevel             = T3-
		Mass                           = 135.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		AccumulatorConsumption         = 55.00 AP
		CycleTime                      = 5.00 sec
		OptimalRange                   = 350 m
		AmmoChargeType                 = Interference emitters
		AmmoChargeCapacity             = 3 pcs
		InterferenceEmitterRadiusModification = 20.00 %
		InterferenceEmitterStrengthModification = 20.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Niani interference module module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:54</remarks>
    public sealed class NianiInterferenceModule : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="NianiInterferenceModule"/> class.
        /// </summary>
        public NianiInterferenceModule()
            : base(
            "Niani interference module",
            "",
            ModuleMetaGroupsEnum.ElectronicWarfare,
            ModuleGroupsEnum.InterferenceModules,
            TechnologyLevelsEnum.Niani,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(EcmCpuUsage<double>),99.00),
				new LazyFeature(typeof(ReactorUsage<double>),183.00),
				new LazyFeature(typeof(ModuleMass<double>),135.00),
				new LazyFeature(typeof(AccumulatorUsage<double>),55.00),
				new LazyFeature(typeof(InterferenceEmitterCycleTime<double>),5.00),
				new LazyFeature(typeof(EcmOptimal<double>),350),
				new LazyFeature(typeof(InterferenceEmitterRadiusModification<double>),0.2),
				new LazyFeature(typeof(InterferenceEmitterStrengthModification<double>),0.2),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.InterferenceEmitterCharges),
				new LazyFeature(typeof(AmmoCapacity<double>),3), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 135.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}